#ifndef CONTROLVIGVERSECMD_H
#define CONTROLVIGVERSECMD_H


#include "Command/BaseCmd.h"
#include "Protocol/Version2Protocol.h"

class ControlVigverseCmd: public BaseCmd
{
public:
    enum{FunctionCode = Version2Protocol::ControlVigverse};
    enum DEVTYPE
    {
        relay1st=0,
        relay2nd,
        relay3rd,
        relay4th,
        Computer,
        Porject,
        AirCondition,
        Curtain,
        Scence,
        Restart=99,


    };

    Q_INVOKABLE explicit ControlVigverseCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);
    void setRoomNO(quint16 no);
    void setCtlDevType(quint8 type);
    void setRelay(quint8 no ,quint8 action,quint8 value);
    void setComputer(quint8 value);
    void setProject(quint8 no,quint8 value);
    void setAirCondition(quint8 action,quint8 value);
    void setCurtain(quint8 no,quint8 value);
    void setScence(quint8 value);
    void setRestart(quint8 value);

   private:

    quint16 m_destinationRoomNO;
    quint8 m_ctlDevType;
    quint8 m_relayNo;
    quint8 m_action;
    quint8 m_value;






};

#endif // CONTROLVIGVERSECMD_H
